package com.bwie.system.mapper;

import com.bwie.common.domain.CarInfo;
import com.bwie.common.domain.ChargeStationType;
import com.bwie.common.domain.City;
import com.bwie.common.domain.request.ChargeStationReq;
import com.bwie.common.domain.request.CommentReq;
import com.bwie.common.domain.response.ChargeStationRes;
import com.bwie.common.domain.response.CommentRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChargeStationMapper {

    /**
     * 实现电站列表的城市展示
     * @return
     */
    List<City> cityList();

    /**
     * 实现电站列表展示
     * @param chargeStationReq
     * @return
     */
    List<ChargeStationRes> chargeStationList(ChargeStationReq chargeStationReq);

    List<ChargeStationType> chargeStationTypeList();


    void updChargeStationType(ChargeStationType chargeStationType);

    Integer countStation(@Param("userId") Integer userId);

    Integer findCollect(@Param("userId") Integer userId, @Param("chargeStationId") Integer chargeStationId);

    void insert(@Param("userId") Integer userId, @Param("chargeStationId") Integer chargeStationId);

    void delCollect(@Param("userId") Integer userId, @Param("chargeStationId") Integer chargeStationId);

    void userAddCar(CarInfo carInfo);

    Integer findCarInfoById(@Param("userId") Integer userId);

    void userDelCar(@Param("userId") Integer userId, @Param("carId") Integer carId);

    void userUpdCar(CarInfo carInfo);

    List<CommentRes> commentList();

    void updComment(CommentReq commentReq);

}
